home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global g_xlib_xpal, g_palettecast, g_visite, g_index, g_tempo, g_call_param, nomtheme, numecran, nbecran, ltheme
- set ltheme to [["F", 9], ["A", 12], ["D", 9], ["H", 20], ["C", 15], ["E", 8], ["G", 12], ["B", 11]]
- set g_visite to 0
- set g_index to 0
- set g_palettecast to 39
- if listp(g_call_param) then
- set g_visite to 1
- set nomtheme to getAt(g_call_param, 1)
- set numecran to value(getAt(g_call_param, 2))
- repeat with i = 1 to 8
- if nomtheme = getAt(getAt(ltheme, i), 1) then
- set nbecran to getAt(getAt(ltheme, i), 2)
- exit repeat
- end if
- end repeat
- set g_tempo to getAt(g_call_param, 3)
- go("theme")
- else
- if (g_call_param <> -1) and (voidp(g_call_param) = 0) then
- set g_index to 1
- set nomtheme to chars(g_call_param, 2, 2)
- set numecran to value(chars(g_call_param, 3, length(g_call_param)))
- repeat with i = 1 to 8
- if nomtheme = getAt(getAt(ltheme, i), 1) then
- set nbecran to getAt(getAt(ltheme, i), 2)
- exit repeat
- end if
- end repeat
- go("theme")
- end if
- end if
- end
-
- on stopMovie
- puppetSound(0)
- end
-
- on loadfile num, name
- global g_path_convert
- put name
- set the picture of cast num to the picture of cast the number of member name
- end
-
- on convertpath name
- global g_path_convert
- set g_path_convert to EMPTY
- repeat with i = 1 to length(name)
- set c to chars(name, i, i)
- if (c = ":") and (chars(name, i + 1, i + 1) <> "\") then
- set g_path_convert to g_path_convert & "\"
- next repeat
- end if
- set g_path_convert to g_path_convert & c
- end repeat
- end
-
- on loadpalette name
- puppetPalette(the number of member name, 60, 1)
- updateStage()
- duplicate(cast the number of member name, 41)
- puppetPalette(41, 60, 1)
- updateStage()
- puppetPalette(the number of member name, 60, 1)
- end
-
- on unpuppet
- repeat with i = 1 to 48
- puppetSprite(i, 0)
- end repeat
- end
-
- on OwnPlay destination
- global gOwnPlayList
- if voidp(gOwnPlayList) then
- set gOwnPlayList to []
- end if
- repeat with i = 1 to count(gOwnPlayList)
- if getAt(getAt(gOwnPlayList, i), 1) = (the pathName & the movie) then
- deleteAt(gOwnPlayList, i)
- end if
- end repeat
- add(gOwnPlayList, [the pathName & the movie, the frame])
- put "play ---> ", gOwnPlayList
- go(1, destination)
- end
-
- on OwnPlayDone
- global gOwnPlayList
- put "done ---> ", gOwnPlayList
- set length to count(gOwnPlayList)
- if length = 0 then
- beep()
- exit
- end if
- go(getAt(getAt(gOwnPlayList, length), 2), getAt(getAt(gOwnPlayList, length), 1))
- deleteAt(gOwnPlayList, length)
- end
-